<template>
	<div class="root">
		<search-bar></search-bar>
		<list-component></list-component>
	</div>
</template>

<script>
const currentVersion = '1.0.0';
const storedVersion = localStorage.getItem('version');
if (storedVersion === null || storedVersion !== currentVersion) {
  localStorage.setItem('version', currentVersion);
  location.reload(true); // true参数确保页面重新加载自服务器而非缓存
}
import ListComponent from './components/ListComponent.vue'
import SearchBar from './components/SearchBar.vue'
	export default {
		name: 'App',
		components: { ListComponent, SearchBar }
	}
</script>
	
<style>
* {
	padding: 0;
	margin: 0;
}
</style>